@fontColor: #fff;
@fontSize: 20px;

body {
    color: #353535;
    font: 20px/1.5 "Microsoft";
}

.aun {
    text-decoration: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none
}

@media screen and (max-width:768px) {
    .asideBar {
        // height: 300px;
        background-color: lightblue;
        overflow: hidden;

        .logo {
            display: none;
        }

        .avatar {
            width: 130px;
            height: 130px;
            margin: 2em auto;
            border-radius: 50%;
            overflow: hidden;

            img {
                width: 100%;
            }
        }

        .nav {
            background-color: #f8bd24;
            display: flex;
            background: #f8bd24;
            flex-direction: row;
            justify-content: center;

            a {
                color: #fff;
                padding: 1em;
                display: block;
                text-align: center;
                .aun();
            }
        }
    }

    main {
        margin-left: 3px;

        section {
            padding: 3em 0;
        }

    }

    // 掌握技能
    .col-xs-4{
        flex: 0 0 33%;
    }
}

@media screen and (min-width:769px) {

    // 侧边栏
    .asideBar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 300px;
        color: @fontColor;
        background-color: #10202f;

        .logo {
            width: 100%;
            height: 100px;
            line-height: 100px;
            text-align: center;

            img {
                margin-top: 25px;
            }
        }

        .avatar {
            width: 100%;
            height: 190px;
            position: relative;
            overflow: hidden;

            .avatar-border {
                width: 130px;
                height: 130px;
                border-radius: 50%;
                position: absolute;
                left: 50%;
                top: 50%;
                margin-top: -65px;
                margin-left: -65px;
                overflow: hidden;
            }

            img {
                width: 100%;
            }
        }

        .nav {
            display: flex;
            flex-direction: column;
            align-items: center;

            a {
                color: @fontColor;
                font-size: @fontSize;
                padding: 1em;
                width: 100%;
                display: block;
                text-align: center;
                .aun;
            }

            a:hover {
                background-color: #203448;
            }
        }
    }

    main {
        margin-left: 300px;

        section {
            padding: 5em 0;
        }
    }

    // 掌握技能
    .col-sm-3{
        flex: 0 0 25%;
    }
}


// 主要内容
main {

    // margin-left: 300px;


    .wrap {
        margin: 0 auto;
        max-width: 1000px;
        font-weight: bold;
    }

    h2 {
        font-size: 1.5em;
    }

    // 1.0关于我
    .aboutMe {
        background: url(../img/bg-1.png);
        padding-left: 30px;

        .title {
            font-size: 30px;
            font-weight: 600;
            padding: 40px 0;

            span {
                color: orange;
            }
        }

        .row {
            li {
                margin: 16px 0px;

                a {
                    color: #c40b00;
                    .aun;
                }

                a:hover {
                    color: orange;
                }

                img {
                    width: 30px;
                    height: 21px;
                    vertical-align: middle;
                }
            }
        }
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #b0d2d8;
        border-radius: 3px;
    }

    // 掌握的技能
    .master-skills {
        background: #ffca40;

        .row {
            padding: 0 15px;
            overflow: auto;
            margin-left: 0;
            margin-right: 0;
            flex-wrap: nowrap;
            display: flex;
            // max-width: 1000px;

            .row-item {
                text-align: center;
                
                // max-width: 25%;
            }

            .skill-icon {
                width: 100px;
                height: 100px;
                margin: 0 auto;
                background: #fff;
                border-radius: 100%;
                box-shadow: 0 5px rgba(0, 0, 0, 0.3);
            }

            i {
                font-size: 50px;
                line-height: 100px;
                transition: transform 0.5s;
            }
        }

    }

    // 2、掌握的技能
    h2.title{
        margin: 20px 0;
    }


    // 3、0个人作品
    .works {
        background: url(../img/bg-2.png);
    }

}

// 个人作品
.works {
    padding: 0 30px;

    h2 {
        padding: 30px 0;
    }

    h3 {
        margin-bottom: 20px;
    }

    a {
        text-decoration: none;

    }

    a:hover p {
        color: #ffca40;
    }

    .works-item {
        img {
            width: 100%;
            height: 100%;
            transition: transform 0.3s;
        }

        img:hover {
            transform: scale(1.05);
        }
    }

    p {
        text-align: center;
        margin: 1em auto;
        color: #c40b00;
    }

}